package com.dragonwu.feign;

import com.dragonwu.feign.callback.TestServiceFeignCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author DragonWu
 * @date 2022-10-01 16:18
 **/
@FeignClient(name = "test-service", path = "/stock", fallback = TestServiceFeignCallback.class)
public interface TestServiceFeign {
    @GetMapping("/test01/{s}")
    String test01(@PathVariable("s") String s) throws Exception;
}
